package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author GaoYiJie
 * @Description
 * @Create 2025/2/28 10:02
 * @Version 1.0
 */
@Data
@TableName("t_prod")
public class Prod implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String prodName;
    private Double price;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
    private Date createTime;
    private Integer saleNum;

    private Integer status;
}
